package com.bdqn.bookshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.bookshop.entity.MallUser;
import com.bdqn.bookshop.utils.DataGridViewResult;
import com.bdqn.bookshop.utils.Result;
import com.bdqn.bookshop.vo.MallUserVo;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface MallUserService extends IService<MallUser> {

    /**
     * 登录
     * @param mallUser
     * @param kaptcha
     * @param sysCaptcha
     * @return
     * @throws Exception
     */
    Result<MallUser> LoginUsers(MallUser mallUser,String kaptcha,String sysCaptcha) throws Exception;

    /**
     * 注册
     * @param mallUser
     * @param repassword
     * @return
     */
    public Result registerUser(MallUser mallUser,String repassword);


    /**
     * 修改密码
     */
    public  Result updatePassWord(Integer id,String password,String newPassword,String repassword);


    /**
     * 个人信息
     * @param id
     * @param mallUser
     * @param session
     * @return
     */
    public  Result updateInfo(Integer id, MallUser mallUser);

    /**
     * 分页查询用户数据
     * @param mallUserVo
     * @return
     */
    DataGridViewResult mallUserList(MallUserVo mallUserVo);

    /**
     * 批量修改状态
     * @param list
     * @return
     */
    Result batchLocked(String ids, String bool);

    /**
     * 修改状态
     * @param mallUser
     * @return
     */
    Result editById(MallUser mallUser);


    Map<String, Object> SmsVerification(String phone);
}
